const proxy = require('./lib/reqlmtproxy');
const http = require('http');
const config = require('config');

let port = config.get('port') || 3001;
let ip = config.get('ip') || "0.0.0.0";
let limitedProxy = config.get('limitedProxy')

let server = http.createServer();

proxy(server, limitedProxy);
server.listen(port, ip);
console.log("Listen", ip, "PORT:", port);